package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;


@TableName("mkt_people")
public class MktPeople extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 参与人姓名 */
    @Excel(name = "参与人姓名")
    @TableField("name")
    private String name;

    /** 参与人电话号码 */
    @Excel(name = "参与人电话号码")
    @TableField("phone")
    private Long phone;

    /** 剩余抽奖次数 */
    @Excel(name = "剩余抽奖次数")
    @TableField("surplus_draw")
    private Integer surplusDraw;

    /** 中奖次数 */
    @Excel(name = "中奖次数")
    @TableField("win_num")
    private Integer winNum;

    @TableField("user_id")
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(Long phone)
    {
        this.phone = phone;
    }

    public Long getPhone()
    {
        return phone;
    }
    public void setSurplusDraw(Integer surplusDraw)
    {
        this.surplusDraw = surplusDraw;
    }

    public Integer getSurplusDraw()
    {
        return surplusDraw;
    }
    public void setWinNum(Integer winNum)
    {
        this.winNum = winNum;
    }

    public Integer getWinNum()
    {
        return winNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("surplusDraw", getSurplusDraw())
            .append("winNum", getWinNum())
            .toString();
    }
}